.class public Lcom/estrongs/android/pop/view/ESRootView;
.super Lcom/estrongs/android/ui/guesture/ESGestureCtrl;
.source "ESRootView.java"


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/guesture/ESGestureCtrl;-><init>(Landroid/content/Context;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1, p2}, Lcom/estrongs/android/ui/guesture/ESGestureCtrl;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2, p3}, Lcom/estrongs/android/ui/guesture/ESGestureCtrl;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method private a(Landroid/view/View;ILandroid/view/View;)Landroid/view/View;
    .locals 2

    const/4 v0, 0x0

    .line 3
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v1

    if-eqz v1, :cond_8

    if-eqz p1, :cond_8

    .line 4
    invoke-virtual {v1, p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a(Landroid/view/View;)Z

    move-result p1

    if-eqz p1, :cond_a

    const/16 p1, 0x11

    if-ne p2, p1, :cond_0

    .line 5
    iget-boolean p1, v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->C:Z

    if-eqz p1, :cond_5

    iget-boolean p1, v1, Lcom/estrongs/android/pop/esclasses/ESAbsToolbarActivity;->f:Z

    if-nez p1, :cond_5

    iget-object p1, v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->j0:Lcom/estrongs/android/pop/app/leftnavigation/i0;

    if-eqz p1, :cond_5

    iget-object p1, v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->k0:Landroid/view/View;

    .line 6
    invoke-virtual {p1}, Landroid/view/View;->getVisibility()I

    move-result p1

    if-nez p1, :cond_5

    .line 7
    iget-object p1, v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->j0:Lcom/estrongs/android/pop/app/leftnavigation/i0;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/leftnavigation/i0;->c()Landroid/view/View;

    move-result-object p1

    goto :goto_0

    :cond_0
    const/16 p1, 0x21

    if-ne p2, p1, :cond_2

    .line 8
    iget-object p1, v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->m:Lcom/estrongs/android/widget/q;

    if-eqz p1, :cond_1

    invoke-virtual {v1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->s0()Z

    move-result p1

    if-eqz p1, :cond_1

    .line 9
    iget-object p1, v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->m:Lcom/estrongs/android/widget/q;

    invoke-virtual {p1}, Lcom/estrongs/android/widget/RealViewSwitcher;->getCurrentChildIndex()I

    move-result p1

    .line 10
    iget-object p2, v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->m:Lcom/estrongs/android/widget/q;

    invoke-virtual {p2, p1}, Landroid/widget/ViewAnimator;->getChildAt(I)Landroid/view/View;

    move-result-object p1

    goto :goto_0

    .line 11
    :cond_1
    invoke-virtual {v1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->C()Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_5

    .line 12
    invoke-virtual {v1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->C()Landroid/view/View;

    move-result-object p1

    goto :goto_0

    :cond_2
    const/16 p1, 0x82

    if-ne p2, p1, :cond_4

    .line 13
    iget-object p1, v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->m:Lcom/estrongs/android/widget/q;

    if-eqz p1, :cond_3

    invoke-virtual {v1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->s0()Z

    move-result p1

    if-eqz p1, :cond_3

    .line 14
    iget-object p1, v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->m:Lcom/estrongs/android/widget/q;

    invoke-virtual {p1}, Lcom/estrongs/android/widget/RealViewSwitcher;->getCurrentChildIndex()I

    move-result p1

    .line 15
    iget-object p2, v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->m:Lcom/estrongs/android/widget/q;

    invoke-virtual {p2, p1}, Landroid/widget/ViewAnimator;->getChildAt(I)Landroid/view/View;

    move-result-object p1

    goto :goto_0

    .line 16
    :cond_3
    invoke-virtual {v1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->B()Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_5

    .line 17
    invoke-virtual {v1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->B()Landroid/view/View;

    move-result-object p1

    goto :goto_0

    :cond_4
    const/16 p1, 0x42

    if-ne p2, p1, :cond_5

    .line 18
    iget-object p1, v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->m:Lcom/estrongs/android/widget/q;

    if-eqz p1, :cond_5

    .line 19
    iget-object p1, v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->m:Lcom/estrongs/android/widget/q;

    invoke-virtual {p1}, Lcom/estrongs/android/widget/RealViewSwitcher;->getCurrentChildIndex()I

    move-result p1

    .line 20
    iget-object p2, v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->m:Lcom/estrongs/android/widget/q;

    invoke-virtual {p2, p1}, Landroid/widget/ViewAnimator;->getChildAt(I)Landroid/view/View;

    move-result-object p1

    goto :goto_0

    :cond_5
    move-object p1, v0

    :goto_0
    if-eqz p1, :cond_6

    .line 21
    invoke-virtual {p1}, Landroid/view/View;->hasFocusable()Z

    move-result p2

    if-eqz p2, :cond_6

    return-object p1

    :cond_6
    if-nez p3, :cond_7

    .line 22
    invoke-virtual {v1}, Landroid/app/Activity;->getCurrentFocus()Landroid/view/View;

    move-result-object p3

    :cond_7
    return-object p3

    .line 23
    :cond_8
    iget-boolean p1, v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->C:Z

    if-eqz p1, :cond_9

    iget-boolean p1, v1, Lcom/estrongs/android/pop/esclasses/ESAbsToolbarActivity;->f:Z

    if-nez p1, :cond_9

    .line 24
    iget-object p1, v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->j0:Lcom/estrongs/android/pop/app/leftnavigation/i0;

    if-eqz p1, :cond_a

    iget-object p1, v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->k0:Landroid/view/View;

    .line 25
    invoke-virtual {p1}, Landroid/view/View;->getVisibility()I

    move-result p1

    if-nez p1, :cond_a

    .line 26
    iget-object p1, v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->j0:Lcom/estrongs/android/pop/app/leftnavigation/i0;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/leftnavigation/i0;->c()Landroid/view/View;

    move-result-object p1

    return-object p1

    .line 27
    :cond_9
    invoke-virtual {v1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->C()Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_a

    .line 28
    invoke-virtual {v1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->C()Landroid/view/View;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    :cond_a
    return-object v0
.end method


# virtual methods
.method public a(Landroid/gesture/Gesture;)V
    .locals 1

    .line 1
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a(Landroid/gesture/Gesture;)V

    :cond_0
    return-void
.end method

.method public dispatchKeyEvent(Landroid/view/KeyEvent;)Z
    .locals 0

    .line 1
    :try_start_0
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    move-result p1
    :try_end_0
    .catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0

    return p1

    :catch_0
    const/4 p1, 0x1

    return p1
.end method

.method public draw(Landroid/graphics/Canvas;)V
    .locals 2

    .line 1
    :try_start_0
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->draw(Landroid/graphics/Canvas;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception p1

    .line 2
    invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V

    .line 3
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "ESRootView.draw() catchs "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, "ESRootView"

    invoke-static {v0, p1}, Lcom/estrongs/android/util/n;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 4
    :goto_0
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 5
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->z0()V

    :cond_0
    const/4 p1, 0x0

    .line 6
    invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->setBackground(Landroid/graphics/drawable/Drawable;)V

    return-void
.end method

.method public focusSearch(I)Landroid/view/View;
    .locals 2

    .line 1
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->focusSearch(I)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    .line 2
    invoke-direct {p0, v0, p1, v1}, Lcom/estrongs/android/pop/view/ESRootView;->a(Landroid/view/View;ILandroid/view/View;)Landroid/view/View;

    move-result-object p1

    if-nez p1, :cond_0

    goto :goto_0

    :cond_0
    move-object v0, p1

    :goto_0
    return-object v0
.end method

.method public focusSearch(Landroid/view/View;I)Landroid/view/View;
    .locals 1

    .line 3
    invoke-super {p0, p1, p2}, Landroid/view/ViewGroup;->focusSearch(Landroid/view/View;I)Landroid/view/View;

    move-result-object v0

    .line 4
    invoke-direct {p0, v0, p2, p1}, Lcom/estrongs/android/pop/view/ESRootView;->a(Landroid/view/View;ILandroid/view/View;)Landroid/view/View;

    move-result-object p1

    if-nez p1, :cond_0

    goto :goto_0

    :cond_0
    move-object v0, p1

    :goto_0
    return-object v0
.end method
